const CryptoJS = require('crypto-js');
function enc(message){
    var key = "passport-gw-pc";
    var keyHex = CryptoJS.enc.Utf8.parse(key);
    var encrypted = CryptoJS.DES.encrypt(message, keyHex, {
        mode: CryptoJS.mode.ECB,
        padding: CryptoJS.pad.Pkcs7
    });
    return encrypted.toString();
}
var f ='123123123';
var b = {
    "words": [
        1885434739,
        1886351988,
        761755437,
        1885536256
    ],
    "sigBytes": 14
}
console.log(enc(f));
